Skip to content

[MIG] project_my_tasks_by_stage: Migration to 20.0 - #155

Closed
ced-adhoc wants to merge 4 commits into
ingadhoc:20.0from
adhoc-dev:20.0-t-76687-ced
Closed

ced-adhoc wants to merge 4 commits into
ingadhoc:20.0from
adhoc-dev:20.0-t-76687-ced

Conversation

@ced-adhoc

@ced-adhoc ced-adhoc commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

Migración de project_my_tasks_by_stage a 20.0.

Tarea: https://www.adhoc.inc/odoo/project.task/76687

Qué cambió

  • Manifest: versión 20.0.1.0.0 e installable.
  • El módulo ya no reemplaza el contexto de la acción project.action_view_my_task. Fija el agrupado por etapa del proyecto (default_group_by="stage_id") en las vistas lista y kanban propias de "Mis tareas", y deja el contexto como lo define Odoo.
  • Motivo: sale_project escribe el mismo contexto, y en una base con los dos se queda con él el que se cargó o actualizó último. En adhoc y cedent, que tienen ambos, el agrupado no se veía.
  • Efecto de dejar el contexto del core: vuelve 'my_tasks': 1, así que "Mis tareas" muestra las subtareas propias del mismo proyecto que su tarea padre y, con Enterprise, el Gantt marca las ausencias de quien lo mira. Se va 'all_task': 0, que ya no lee nadie.
  • Tests nuevos (3), porque el módulo no tenía: las vistas agrupan por etapa del proyecto, el contexto de la acción no se pisa y el agrupado es válido para las tareas.
  • es.po re-exportado contra 20.0 y nombre del módulo traducido. La descripción queda sin traducir, porque es el README completo.

Para revisar

  • Es un cambio de lo que ve quien usa "Mis tareas", y está en consulta con el PO en la tarea. No se probaron las vistas pivote y gráfico.
  • En una base que ya esté en 20.0 con la versión anterior de este módulo, la acción mantiene el contexto viejo hasta que project se actualiza. En un salto de versión no pasa, porque se actualizan todos los módulos.

Cómo se probó

  • Instala en una base 20.0 local y sus 3 tests pasan (0 failed, 0 error). Rompiendo el XML a propósito, los tests fallan.
  • Con sale_project instalado en esa base, "Mis tareas" agrupa por etapa del proyecto en lista y kanban, muestra las subtareas propias y el Gantt marca la ausencia del usuario.
  • pre-commit run en verde.

Check that the action keeps the stage grouping and the defaults it had,
and that the task model accepts that grouping.
…le name

The module description is left untranslated on purpose: it is the whole
README, with reST directives and image URLs.
@roboadhoc

Copy link
Copy Markdown
Contributor

Pull request status dashboard

@ced-adhoc ced-adhoc changed the title [WIP] [MIG] project_my_tasks_by_stage: Migration to 20.0 [MIG] project_my_tasks_by_stage: Migration to 20.0 Oct 28, 2026
The module replaced the whole context of the My Tasks action. Any other
module that writes the same context, like sale_project, clashed with it
and the last one to load or update won: in a database with both, the
grouping by stage was lost.

Set default_group_by on the list and kanban views made for My Tasks
instead, and leave the context of the action as Odoo defines it. This
also keeps my_tasks in the context, so the own sub-tasks are shown and
the Gantt shows the absences of the user.
@jcadhoc

jcadhoc commented Oct 29, 2026

Copy link
Copy Markdown
Contributor

@roboadhoc r+ nobump rebase-ff

@roboadhoc

Copy link
Copy Markdown
Contributor

Merge method set to rebase and fast-forward.

roboadhoc pushed a commit that referenced this pull request Oct 29, 2026
roboadhoc pushed a commit that referenced this pull request Oct 29, 2026
Check that the action keeps the stage grouping and the defaults it had,
and that the task model accepts that grouping.

Part-of: #155
Signed-off-by: Juan Carreras <[email protected]>
roboadhoc pushed a commit that referenced this pull request Oct 29, 2026
…le name

The module description is left untranslated on purpose: it is the whole
README, with reST directives and image URLs.

Part-of: #155
Signed-off-by: Juan Carreras <[email protected]>
@roboadhoc roboadhoc closed this in b2df34c Oct 29, 2026
@roboadhoc
roboadhoc deleted the 20.0-t-76687-ced branch October 29, 2026 12:49
@roboadhoc roboadhoc added the 19.1 label Oct 29, 2026

This branch was successfully deployed

1 active deployment
merge — 760ff02d Deployed Oct 29, 2026 by roboadhoc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants